package zuoye01;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Test03 {

	public static void main(String[] args) {
		Map map=new HashMap();
		Scanner input=new Scanner(System.in);
		System.out.println("输入国家和简称：");
		for (int i = 0; i < 4; i++) {
			map.put(input.next(), input.next());			
		}
		for (String str : args) {
			System.out.println(str);
		}
		System.out.println("请输入您要查找的国家");
		System.out.println(map.containsKey(input.next()));
		System.out.println(map.containsValue(input.next()));
		
	}
}
